import uk.ac.shef.wit.simmetrics.similaritymetrics.InterfaceStringMetric;

import com.wcohen.ss.Jaro;
import com.wcohen.ss.JaroWinkler;
import com.wcohen.ss.Level2;
import com.wcohen.ss.Levenstein;
import com.wcohen.ss.SoftTFIDF;
import com.wcohen.ss.api.StringDistance;
import com.wcohen.ss.api.Tokenizer;
import com.wcohen.ss.tokens.SimpleTokenizer;

public class Level2Adapter extends Level2 implements InterfaceStringMetric{

	private static final StringDistance SIMMETRIC = new JaroWinkler();
	
	public Level2Adapter() {
		super(SimpleTokenizer.DEFAULT_TOKENIZER, SIMMETRIC);
	}

	public String getLongDescriptionString() {
		// TODO Auto-generated method stub
		return null;
	}

	public String getShortDescriptionString() {
		return "Level2"+SIMMETRIC.toString();
	}

	public float getSimilarity(String arg0, String arg1) {
		Level2Adapter metric = new Level2Adapter();
		return (float) metric.score(arg0, arg1);
	}

	public String getSimilarityExplained(String arg0, String arg1) {
		// TODO Auto-generated method stub
		return null;
	}

	public long getSimilarityTimingActual(String arg0, String arg1) {
		// TODO Auto-generated method stub
		return 0;
	}

	public float getSimilarityTimingEstimated(String arg0, String arg1) {
		// TODO Auto-generated method stub
		return 0;
	}
}
